package com.singleton.other.shapeTest;

/**
 * Created by Administrator on 2017/6/5.
 */
public class Triangle extends Shape {

    double height;
    double width;

    public Triangle(double height,double width){
        this.height = height;
        this.width = width;

    }


    @Override
    public double getArea() {
        return 0.5*height*width;
    }
}
